/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"673428B9-A5B6-4856-BE6C-CAABB1D44920"}
 */
function iraDtl(event) {
	globals.mostrarForm('ficha_clinica_dtl')
	// forms.ficha_clinica_dtl.controller.show()
}

/**
 * Handle changed data.
 *
 * @param {Object} oldValue old value
 * @param {Object} newValue new value
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"04E45965-075E-4984-BAEC-F722BF9BCB47"}
 */
function onDataChangeGPaciente(oldValue, newValue, event) {
	controller.loadRecords(gpaciente_to_ficha_clinica)
	return true
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"F8365433-FD56-475A-B9A4-0B170D0E7F11"}
 */
function onShow(firstShow, event) {
	elements.fld_gpac.readOnly = false
	if (firstShow)
		controller.loadRecords(null)
		
}
